.class public Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;
.super Landroid/view/View;


# instance fields
.field private a:I

.field private b:I

.field private c:Landroid/graphics/Paint;

.field private d:I

.field private e:I

.field private f:Ljava/lang/String;

.field private g:I

.field private h:I

.field private i:I

.field private j:F

.field private k:Landroid/graphics/Rect;

.field private l:I

.field private m:I

.field private n:Landroid/graphics/Paint$FontMetricsInt;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    const v0, 0xffffff

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    const/high16 v0, 0xff0000

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    const-string/jumbo v0, "xx"

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41880000    # 17.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->k:Landroid/graphics/Rect;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    const v0, 0xffffff

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    const/high16 v0, 0xff0000

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    const-string/jumbo v0, "xx"

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41880000    # 17.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->k:Landroid/graphics/Rect;

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0, v3}, Landroid/graphics/Paint;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    sget-object v0, Lcom/fiberhome/gaea/client/base/g;->ColorTrackView:[I

    invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    invoke-virtual {v0, v3, v1}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    const/4 v1, 0x2

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    const/4 v1, 0x3

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    const/4 v1, 0x4

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    const/4 v1, 0x5

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    invoke-virtual {v0}, Landroid/graphics/Paint;->getFontMetricsInt()Landroid/graphics/Paint$FontMetricsInt;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->n:Landroid/graphics/Paint$FontMetricsInt;

    return-void
.end method

.method private a(I)I
    .locals 4

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v2

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    const/4 v0, 0x0

    sparse-switch v2, :sswitch_data_0

    :goto_0
    const/high16 v3, -0x80000000

    if-ne v2, v3, :cond_0

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingTop()I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingBottom()I

    move-result v1

    add-int/2addr v0, v1

    return v0

    :sswitch_0
    move v0, v1

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->k:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v0

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        -0x80000000 -> :sswitch_1
        0x0 -> :sswitch_1
        0x40000000 -> :sswitch_0
    .end sparse-switch
.end method

.method private a()V
    .locals 5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v0

    float-to-int v0, v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    const/4 v2, 0x0

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->k:Landroid/graphics/Rect;

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41800000    # 16.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    int-to-float v1, v1

    const/high16 v2, 0x3f800000    # 1.0f

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    sub-float/2addr v2, v3

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    int-to-float v3, v3

    mul-float/2addr v2, v3

    add-float/2addr v1, v2

    float-to-int v1, v1

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    add-int/2addr v2, v3

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(Landroid/graphics/Canvas;III)V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;III)V
    .locals 4

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->m:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->n:Landroid/graphics/Paint$FontMetricsInt;

    iget v1, v1, Landroid/graphics/Paint$FontMetricsInt;->ascent:I

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->n:Landroid/graphics/Paint$FontMetricsInt;

    iget v1, v1, Landroid/graphics/Paint$FontMetricsInt;->descent:I

    sub-int/2addr v0, v1

    div-int/lit8 v0, v0, 0x2

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    invoke-virtual {v1, p2}, Landroid/graphics/Paint;->setColor(I)V

    const/4 v1, 0x2

    invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->save(I)I

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {p1, p3, v1, p4, v2}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    int-to-float v2, v2

    int-to-float v0, v0

    iget-object v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v2, v0, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    return-void
.end method

.method private b(I)I
    .locals 4

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v2

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v1

    const/4 v0, 0x0

    sparse-switch v2, :sswitch_data_0

    :goto_0
    const/high16 v3, -0x80000000

    if-ne v2, v3, :cond_0

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingLeft()I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingRight()I

    move-result v1

    add-int/2addr v0, v1

    return v0

    :sswitch_0
    move v0, v1

    goto :goto_0

    :sswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->k:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v0

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        -0x80000000 -> :sswitch_1
        0x0 -> :sswitch_1
        0x40000000 -> :sswitch_0
    .end sparse-switch
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41700000    # 15.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    int-to-float v2, v2

    const/high16 v3, 0x3f800000    # 1.0f

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    sub-float/2addr v3, v4

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    int-to-float v4, v4

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    float-to-int v2, v2

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(Landroid/graphics/Canvas;III)V

    return-void
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 5

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41800000    # 16.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    int-to-float v2, v2

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    iget v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    int-to-float v4, v4

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    float-to-int v2, v2

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(Landroid/graphics/Canvas;III)V

    return-void
.end method

.method private d(Landroid/graphics/Canvas;)V
    .locals 4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getContext()Landroid/content/Context;

    move-result-object v0

    const/high16 v1, 0x41700000    # 15.0f

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c:Landroid/graphics/Paint;

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    int-to-float v1, v1

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    int-to-float v3, v3

    mul-float/2addr v2, v3

    add-float/2addr v1, v2

    float-to-int v1, v1

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    iget v3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    add-int/2addr v2, v3

    invoke-direct {p0, p1, v0, v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(Landroid/graphics/Canvas;III)V

    return-void
.end method


# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    if-nez v0, :cond_0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->c(Landroid/graphics/Canvas;)V

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d(Landroid/graphics/Canvas;)V

    :goto_0
    return-void

    :cond_0
    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b(Landroid/graphics/Canvas;)V

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(Landroid/graphics/Canvas;)V

    goto :goto_0

    :cond_1
    sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string/jumbo v1, "ColorTrackView direction error"

    invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    goto :goto_0
.end method

.method protected onMeasure(II)V
    .locals 2

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b(I)I

    move-result v0

    invoke-direct {p0, p2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a(I)I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setMeasuredDimension(II)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getMeasuredWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingLeft()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->getPaddingRight()I

    move-result v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->i:I

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->i:I

    div-int/lit8 v0, v0, 0x2

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->h:I

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->b:I

    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 0

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/View;->onSizeChanged(IIII)V

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->l:I

    iput p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->m:I

    return-void
.end method

.method public setDirection(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->a:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->invalidate()V

    return-void
.end method

.method public setProgress(F)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->j:F

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->invalidate()V

    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->f:Ljava/lang/String;

    return-void
.end method

.method public setTextChangeColor(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->e:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->invalidate()V

    return-void
.end method

.method public setTextOriginColor(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->d:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->invalidate()V

    return-void
.end method

.method public setTextSize(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->g:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->requestLayout()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->invalidate()V

    return-void
.end method
